var Action = function() {};

Action.prototype = {
    
    run: function(arguments) {
        
        arguments.completionFunction({ "text" : window.getSelection().toString() });
        
    },
    
    finalize: function(arguments) {
    
        alert(arguments["text"] + ":" + arguments["explain"]);
        
    }
    
};

var ExtensionPreprocessingJS = new Action
